
package com.zsrt.day20170504.ch01;


public class MagicThreadTest {

	public static void main(String[] args) {
		MagicThread magic= new MagicThread();
		
		//单线程
		//magic.run();
		
		//多线程
		Thread t1= new Thread(magic);
		Thread t2= new Thread(magic);
		t1.setName("魔法师");
		t2.setName("武士");
		
		
		t1.start();
		t2.start();
	}
}
